﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Adapter.aspx.cs" Inherits="OTA.Notification.Web.Adapter.EditAdapter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <link href="../../Style/main.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="div_ct">
        <table width="100%">
            <tr>
                <td width="150">
                    适配器名称：
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" MaxLength="100" CssClass="text-area"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    消息发送类型：
                </td>
                <td>
                    <asp:DropDownList ID="ddlType" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    通讯协议：
                </td>
                <td>
                    <asp:DropDownList ID="ddlProtocol" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlProtocol_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="code,needflag">
                        <Columns>
                            <asp:BoundField HeaderText="属性名" DataField="name" />
                            <asp:BoundField HeaderText="必须" DataField="need" />
                            <asp:TemplateField HeaderText="值">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("value")%>' CssClass="text-area"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    是否异步：
                </td>
                <td>
                    <asp:CheckBox ID="chkAsy" runat="server" Checked="true" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <p class="btn_center">
        <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" CssClass="button" />
    </p>
    </form>
</body>
</html>
